package com.jiazhong.commons.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class OrderItem implements Serializable {
    @TableId
    private String id;
    private String orderId;
    private String bookId;
    private Integer number;
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    @TableField(fill = FieldFill.UPDATE)
    private String updateTime;

    public OrderItem(String bookId, Integer number) {
        this.bookId = bookId;
        this.number = number;
    }
}